<template>
    <viewer :options="options"></viewer>
</template>

<script>
import Viewer from './package/view/Viewer'
import './package/theme/index.scss';
export default {
  name: 'App',
  components: { Viewer },
  data() {
    return {
      options: {
        id: 'leave',
        roles: [{key:'111', value: '张三'}],
        users: [{key:'222', value: '角色'}],
        filters: [{key:'222', value: '过滤器1'},{key:'111', value: '过滤器2'}],
        getBtn: (param)=>{
          return new Promise(((resolve) => {resolve([])}))
        },
        saveBtn: (data)=>{
          console.log("save button setting !!!", data)
        },
        saveXml: (id, data)=>{
          console.log('---------', data)
          return new Promise(((resolve) => {resolve()}))
        },
      }
    };
  },
  methods: {
  },
};
</script>

<style lang="scss">
</style>
